﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using WalkingTec.Mvvm.Core;
using System.Text.Json.Serialization;
using TyMES.Model;

namespace TyMES.Model.Record
{
    /// <summary>
    /// 不良品记录
    /// </summary>
	[Table("BadProductRecord")]

    [Display(Name = "_Model.BadProductRecord")]
    public class BadProductRecord : BasePoco
    {
        [Display(Name = "_Model._BadProductRecord._factoryCode")]
        [Comment("工厂编码")]
        public string FactoryCode { get; set; }
        [Display(Name = "_Model._BadProductRecord._lineCode")]
        [Comment("产线编码")]
        public string LineCode { get; set; }
        [Display(Name = "_Model._BadProductRecord._snNumber")]
        [Comment("SN号")]
        public string SnNumber { get; set; }
        [Display(Name = "_Model._BadProductRecord._stationCode")]
        [Comment("工位编号")]
        public string StationCode { get; set; }
        [Display(Name = "_Model._BadProductRecord._materialCode")]
        [Comment("物料编码")]
        public string MaterialCode { get; set; }
        [Display(Name = "_Model._BadProductRecord._materialName")]
        [Comment("物料名称")]
        public string MaterialName { get; set; }
        [Display(Name = "_Model._BadProductRecord._materialVersion")]
        [Comment("物料版本")]
        public string MaterialVersion { get; set; }
        [Display(Name = "_Model._BadProductRecord._operationCode")]
        [Comment("工序编码")]
        public string OperationCode { get; set; }
        [Display(Name = "_Model._BadProductRecord._defectSource")]
        [Comment("不良信息源")]
        public string DefectSource { get; set; }
        [Display(Name = "_Model._BadProductRecord._UploadFlag")]
        [Comment("上传标志")]
        public bool? UploadFlag { get; set; }

        //[Display(Name = "_Model._BadProductRecord._vrifier")]
        //[Comment("确认人")]
        //public string Verifier { get; set; }//直接放到CreateBy中
        //[Display(Name = "_Model._BadProductRecord._result")]
        //[Comment("确认结果")]
        //public string Result { get; set; }
        //[Display(Name = "_Model._BadProductRecord._badCause")]
        //[Comment("不良原因")]
        //public string BadCause { get; set; }

    }

}
